/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.gov.cemaden.agent.proxy;

import br.gov.cemaden.library.dao.pcds.RedeDao;
import br.gov.cemaden.library.interfaces.pcds.RedeInterface;
import br.gov.cemaden.library.model.pcds.Rede;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author alan
 */
public class RedeProxy implements RedeInterface{
    
    private final RedeInterface redes;
    
    public RedeProxy(Session session){        
        redes = new RedeDao(session);
    }

    public List<Rede> findAll() {
        return redes.findAll();
    }

    public Rede findByIdRede(Long idRede) {
        return redes.findByIdRede(idRede);
    }

    public List<Rede> findByNome(String nome) {
        return redes.findByNome(nome);
    }

    public List<Rede> findBySigla(String sigla) {
        return redes.findBySigla(sigla);
    }

    public List<Rede> findByPercMinFuncto(Short percMinFuncto) {
        return redes.findByPercMinFuncto(percMinFuncto);
    }

    public List<Rede> findByTempoMaxSemAquisicao(Integer tempoMaxSemAquisicao) {
        return redes.findByTempoMaxSemAquisicao(tempoMaxSemAquisicao);
    }

    public void insert(Rede pcdsRede) {
        redes.insert(pcdsRede);
    }

    public void update(Rede pcdsRede) {
        redes.update(pcdsRede);
    }

    public void delete(Rede pcdsRede) {
        redes.delete(pcdsRede);
    }
    
}
